package com.wsc.wscbirthdaykeeper.model.entity;

import java.util.Date;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "person")
public class Person {

	public static final String FIELD_ID = "id";
	public static final String FIELD_NAME = "name";
	public static final String FIELD_DATE = "date";

	@DatabaseField(columnName = FIELD_ID, generatedId = true)
	private int id;

	@DatabaseField(columnName = FIELD_NAME, dataType = DataType.STRING)
	private String name;

	@DatabaseField(columnName = FIELD_DATE, dataType = DataType.DATE)
	private Date date;

	public Person() {
		super();
	}

	public Person(String name, Date date) {
		super();
		this.name = name;
		this.date = date;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
}
